<template>
  <div class="layout-padding">
    <div class="layout-padding-auto layout-padding-view">
      <el-row shadow="hover" class="ml10">
        <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="">
          <el-form-item label="内容名称" class="formItem300">
            <el-input v-model="queryParams.search" placeholder="请输入标题或作者名称"></el-input>
          </el-form-item>
          <el-form-item label="内容类型">
            <el-select v-model="queryParams.categoryid" placeholder="全部类型">
              <el-option v-for="item in categoryidDescList" :key="item.id" :label="item.name" :value="item.id">
              </el-option>
            </el-select>
          </el-form-item>
          <el-form-item label="作品状态">
            <el-select v-model="queryParams.publishStatus" placeholder="全部状态">
              <el-option v-for="item in auditStatusList" :key="item.value" :label="item.label" :value="item.value">
              </el-option>
            </el-select>
          </el-form-item>
          <el-form-item>
            <el-button class="ml10" type="primary" icon="search" size="mini" @click="handleQuery"> 查询 </el-button>
            <el-button icon="Refresh" size="mini" @click="resetQuery"> 重置 </el-button>
          </el-form-item>
          <el-form-item class="elFormItem-R">
            <div>排列样式切换</div>
          </el-form-item>

        </el-form>
      </el-row>
      <div class="drafts">
        <div class="draftsList">
          <div class="draftsDom">
            <div class="draftsDomLeft">
              <div>
                <img src="" alt="" />
              </div>
              <div class="draftsText">
                <div>
                  <h4>标题XXXXXXXXXXXXXXXXXXXXXXX</h4>
                </div>
                <div>描述XXXXXXXXXXXXXXXXXXXXXXXXXXXX</div>
                <div class="draftsType">正常/审核中/审核不通过/已下架</div>
                <div class="draftsTime">2025-07-01 12:00:00</div>
              </div>
            </div>

            <div class="draftsText">
              <div><span>点赞：xx</span> <span>评论：xx</span><span>转发：xx</span></div>
              <div><span>分享：xx</span> <span> 收藏：xx</span> <span>举报：xx</span></div>
            </div>
            <div class="draftsDetails">
              <div>
                <div><el-button type="primary">编辑</el-button></div>
                <div><el-button type="primary">发布/下架</el-button></div>
                <div><el-button type="primary">删除</el-button></div>
              </div>
            </div>
          </div>
          <div class="draftsDom">
            <div class="draftsDomLeft">
              <div>
                <img src="" alt="" />
              </div>
              <div class="draftsText">
                <div>
                  <h4>标题XXXXXXXXXXXXXXXXXXXXXXX</h4>
                </div>
                <div>描述XXXXXXXXXXXXXXXXXXXXXXXXXXXX</div>
                <div class="draftsType">正常/审核中/审核不通过/已下架</div>
                <div class="draftsTime">2025-07-01 12:00:00</div>
              </div>
            </div>

            <div class="draftsText">
              <div><span>点赞：xx</span> <span>评论：xx</span><span>转发：xx</span></div>
              <div><span>分享：xx</span> <span> 收藏：xx</span> <span>举报：xx</span></div>
            </div>
            <div class="draftsDetails">
              <div>
                <div><el-button type="primary">编辑</el-button></div>
                <div><el-button type="primary">发布/下架</el-button></div>
                <div><el-button type="primary">删除</el-button></div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
	data() {
		return {
			formDialogRef: '',
			excelUploadRef: '',
			queryForm: {},
			dataList: [],
			loading: false,
			pagination: null,
      queryParams:{}
		};
	},
	created() {},
	mounted() {},
	methods: {
		handleDelete() {},
		handleSelectionChange() {},
		exportExcel() {},
	},
};
</script>
<style lang="scss" scoped>
.draftsTitle {
  border-bottom: 1px solid #e3e3e3;
  padding: 15px 20px;
  font-size: 18px;
}

.draftsDom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px;
  font-size: 16px;

  border: 1px solid #e3e3e3;
  margin-bottom: 20px;
  padding-bottom: 20px;
  color: #666;

  p {
    color: #666;
  }

  h4 {
    font-size: 18px;
    color: #333;
  }

  .draftsDomLeft {
    display: flex;
    position: relative;
    height: 160px;

    img {
      width: 120px;
      min-height: 160px;
      background-color: #e3e3e3;
      margin-right: 20px;
    }

    .draftsType {
      color: #2e5cf6;
    }

    .draftsTime {
      position: absolute;
      bottom: 0;
      margin-bottom: 0;
    }
  }

  .draftsText {
    height: 100%;

    span {
      margin-right: 20px;
    }

    div {
      margin-bottom: 10px;

    }
  }

  .draftsDetails {
    color: #2e5cf6;
    cursor: pointer;

    .el-button {
      width: 100px;
      margin-bottom: 20px;
    }
  }
}

.elFormItem-R {
  float: right;
}

.draftsDom:hover {
  background-color: #f9f9f9;
}
</style>
